.mala-album {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #262626;

  &-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 86px;

    &-close {
      margin-right: 24px;
      width: 48px;
      height: 48px;
      cursor: pointer;

      img {
        width: 100%;
        height: 100%;
      }
    }
  }

  &-slider {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;

    &-control {
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: absolute;
      z-index: 9991;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;

      &-left, &-right {
        width: 77px;
        height: 77px;
        cursor: pointer;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }

    &-image {
      position: relative;
      height: 100%;
      overflow: hidden;
      width: 100%;
      max-width: 105vh;

      img {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        margin: 0 auto;
        height: 100%;
        user-select: none;
        transition: all 300ms ease;
      }
      
      &-animation-leave {
        transform: translateX(100%);
        opacity: 0;
      }
      
      &-animation-enter {
        transform: translateX(-100%);
        opacity: 0;
      }
    }
  }

  &-preview {
    display: flex;
    justify-content: center;
    margin: 10px auto 5px;
    width: 800px;

    &-item {
      height: 100px;
      margin-right: 15px;
      cursor: pointer;

      &:last-child {
        margin-right: 0;
      }

      img {
        height: 100%;
        opacity: 0.4;
      }

      &.active {
        img {
          opacity: 1;
        }
      }
    }
  }
}